/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package managers;

import beans.DiaSalida;
import dao.DiaSalidaDao;
import java.util.List;
import javax.swing.JOptionPane;

/**
 *
 * @author nMoncho
 */
public class ManagerRankDias {

    private List<DiaSalida> dias;

    public DiaSalida[] getDiasSalida(){
        dias = DiaSalidaDao.getDiaSalida();
        DiaSalida[] retorno = new DiaSalida[dias.size()];
        int i=0;
        for(DiaSalida dia : dias){
            retorno[i] = dia;

            i++;
        }

        return retorno;
    }

    public boolean actualizarDiaSalidas() {
        return DiaSalidaDao.update(dias);
    }

}
